package cn.DesignModel.strategy;


/**
 * @author: lizemin
 * @version: 1.0
 */
public class Test {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        // 执行请水军的策略
        IncreaseFansStrategy waterArmy = new WaterArmy();
        StrategyFactory StrategyFactory = new StrategyFactory(waterArmy);
        StrategyFactory.exec();

        // 执行发原创文章的策略
        IncreaseFansStrategy originalArticle = new OriginalArticle();
        StrategyFactory strategyFactory2 = new StrategyFactory(originalArticle);
        strategyFactory2.exec();

    }
}
